package com.originskyseed.platform.user.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.originskyseed.platform.user.model.SpreadPlayerLimit;

/**
 * 主播玩家推广上限记录表Mapper类（OSI_SPREAD_PLAYER_LIMIT）
 *
 * @author wlj
 */
public interface SpreadPlayerLimitMapper {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(SpreadPlayerLimit record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(SpreadPlayerLimit record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(SpreadPlayerLimit record) throws Exception;

	/**
	 * 批量修改状态
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int updateStateByIds(@Param("list") List<String> ids, @Param("state") int state) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(SpreadPlayerLimit record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public SpreadPlayerLimit selectByPrimaryKey(String id) throws Exception;

	/**
	 * 判断是否已存在
	 *
	 * @param objId
	 * @return
	 * @throws Exception
	 */
	public SpreadPlayerLimit selectIsNUllByObjId(@Param("objId") String objId) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<SpreadPlayerLimit> selectList(SpreadPlayerLimit record) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<SpreadPlayerLimit> selectListByPage(Map<String, Object> params) throws Exception;

}
